package com.xca.znb.presenter;

import com.xca.znb.entity.Foot;
import com.xca.znb.entity.Goods;
import com.xca.znb.model.imodel.IFoot;

import java.util.List;

public class FootPresenter {
    private IFoot iFoot ;
    public FootPresenter(IFoot iFoot){
        this.iFoot = iFoot ;
    }

    public Goods getGoodsById(int id) {
        return iFoot.getGoodsById(id);
    }

    public List<Foot> getFoots(String user) {
        return iFoot.getFoots(user);
    }
    public void addOrUpdateFoot(int goodsId, String user, String time) {
        iFoot.addOrUpdateFoot(goodsId, user, time);
    }
}
